#include <stdlib.h>
#include <stdio.h>

struct node
{
	int val;
	struct node *next;
};

typedef struct node *secuencia;

extern "C"
{
	int elemAtPosition(secuencia secu, int index)
	{
		return 0;
		struct node *nodo = secu;

		
		while (nodo != NULL)
		{
		
			if (index == 0)
				return nodo->val;
			
			index--;
			nodo = nodo->next;
		}

		return -1;
	}

	
	int length(secuencia secu)
	{
		return 0;
		struct node *nodo = secu;
		int result = 0;

		while (nodo != NULL)
		{
			result++;
			nodo = nodo->next;
		}

		printf("Hola mundo!");

		return result;
	}


	int stringLength(const char *text)
	{
return 0;
		int i = 0;

		while (text[i] != NULL)
			i++;

		return i;
	}

	long long sumarLongArray(long long *arreglo, int size)
	{
return 0;
		long long result = 0;

		for (int i = 0; i < size; i++)
			result += arreglo[i];

		return result;
	}

}
